package com.lh.glorypavilion.service.edu.feign;

import com.lh.glorypavilion.result.R;
import com.lh.glorypavilion.service.edu.feign.fallback.OssFeignFabllback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "service-aliyunoss",fallback = OssFeignFabllback.class)
public interface OssFeignService {

    @DeleteMapping("/admin/oss/file/remove")
    public R delete(@RequestParam("url") String url);
}
